package com.aya.aop.asp;

import com.aya.aop.asp.ChildBean;
import org.aspectj.lang.ProceedingJoinPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class FirstAop {
    Logger logger = LoggerFactory.getLogger(ChildBean.class);

    public Object doAround(ProceedingJoinPoint pjp) throws Throwable {
        logger.info("FirstAop:start");
        Object obj = pjp.proceed();
        logger.info("FirstAop:end");
        return obj;
    }
}
